package com.alibaba.cloud.boot.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author xrr
 * @since 2024-02-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.INPUT)
    private String orderId;

    /**
     * 订单名
     */
    @TableField("order_name")
    private String orderName;


}
